package com.grm.sys.controller;

import com.grm.common.entity.Result;
import com.grm.common.utils.JwtUtil;
import com.grm.sys.response.HomeResponse;
import com.grm.sys.response.SysUserResponse;
import com.grm.sys.service.HomeService;
import com.grm.sys.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HomeController {
    @Autowired
    private HomeService homeService;

    @GetMapping("/home")
    public Result getHome() {
        HomeResponse homeResponse = homeService.getHomeResponse();
        return Result.success(homeResponse);
    }
}
